<%@ include file="/common/taglibs.jsp"%>
<%@ page language="java" pageEncoding="utf8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US" dir="ltr">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<link rel="stylesheet" href="<c:url value="/css/shopadmin.css"/>" type="text/css" />
	</head>
	<body style="">
		<div class="head_content" id="headBar" style=""></div>
		<div class="main_content" id="main">
			<div class="tableform">
				<h4>
					${systemTemplate.tmplDescription }
				</h4>
				<form method="post" action="mb_tmpl_save.html">
					<input type="hidden" value="${systemTemplate.tmplDescription }" name="systemTemplate.tmplDescription" />
					<input type="hidden" value="${systemTemplate.tmplName }" name="systemTemplate.tmplName" />


					<div class="division">
						<table width="100%" cellspacing="0" cellpadding="0" border="0">
							<tbody>
								<tr>
									<th>
										邮件标题：
									</th>
									<td>
										<input value="${systemTemplate.title}" style="width: 360px;" name="systemTemplate.title" class="x-input " />
									</td>
								</tr>
								<tr>
									<th>
										是否启用：
									</th>
									<td>
										<input type="radio" value="true" <c:if test="${systemTemplate.active }">checked="checked"</c:if>    name="systemTemplate.active"   />是
										<input type="radio" value="false" <c:if test="${!systemTemplate.active }">checked="checked"</c:if>    name="systemTemplate.active"   />否
										
									</td>
								</tr>
								<tr>
									<th>
										内容模板：
									</th>
									<td>
										<textarea class="jquery_ckeditor" cols="80" id="editor1" name="systemTemplate.content" rows="10">
											${systemTemplate.content}
										</textarea>
									</td>
								</tr>
							</tbody>
						</table>
					</div>
					<div class="table-action">
						<button class="btn" type="submit">
							<span><span>保存模板</span> </span>
						</button>
					</div>
				</form>
			</div>


		</div>
		<div class="foot_content" id="footBar" style="font-size: 0px;"></div>
		<script type="text/javascript" src="<c:url value='/scripts/jquery-1.4.2.js'/>"></script>
		<script type="text/javascript" src="<c:url value="/ckeditor/ckeditor.js"/>"></script>
		<script type="text/javascript" src="<c:url value="/ckeditor/adapters/jquery.js"/>"></script>
		<script type="text/javascript">	
	var config = {
		toolbar:
		[
			[ 'Bold', 'Italic', 'Underline', 'StrikeThrough', '-',
							'Subscript', 'Superscript' ],
					[ 'OrderedList', 'UnorderedList', '-', 'Outdent', 'Indent',
							'Blockquote' ],
					[ 'JustifyLeft', 'JustifyCenter', 'JustifyRight',
							'JustifyFull' ],
					[ 'Link', 'Unlink', 'Anchor' ],
					[ 'Style', 'FontFormat', 'FontName', 'FontSize' ],
					[ 'Image', 'Flash', 'Table', 'Rule', 'Smiley',
							'SpecialChar' ], [ 'TextColor', 'BGColor','Source' ]
		],
		filebrowserImageUploadUrl : '<c:url value="/uploadFile.html?Type=Image"/>' 
	};
	$('.jquery_ckeditor').ckeditor(config);      
	
 




</script>

	</body>
</html>